package com.ioc.business.intserv.controller;

import com.ioc.business.intserv.domain.bo.IntservStatisticsQueryBo;
import com.ioc.business.intserv.service.IIntservStatisticsService;
import com.ioc.business.intserv.vo.IntservStatisticsVo;
import com.ioc.common.core.controller.BaseController;
import com.ioc.common.core.domain.AjaxResult;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 综合数据看板
 */
@RestController
@RequestMapping("/intserv-statistics")
@AllArgsConstructor
public class IntservStatisticsController extends BaseController {

    private final IIntservStatisticsService intservStatisticsService;


    /**
     * 查询综合数据看板统计
     *
     * @param queryBo
     * @return
     * @folder 综合数据看板/查询综合数据看板统计
     */
    @GetMapping("/query")
    public AjaxResult queryStatistics(@RequestBody IntservStatisticsQueryBo queryBo) {
        IntservStatisticsVo intservStatisticsVo = intservStatisticsService.queryStatistics(queryBo);
        return success(intservStatisticsVo);
    }
}
